module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;

    var d=new Date();
   
    const GoodsTypeSchema = new Schema({
      title:{ type:String },
      description:{ type:String },
      status:{ type:Number, default:1 },
      add_time:{ 
        type:Number,
        default: d.getTime()
      },
    });

   
    return mongoose.model('GoodsType', GoodsTypeSchema,'goods_type');
}